<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">

<ui:composition template="/restrito/template.xhtml">

<ui:define name="menu"><ui:include src="menu.xhtml"/></ui:define>

<ui:define name="corpo">
	<div class="container">
		<ui:include src="../../restrito/mensagem.xhtml"/>
		<h:form id="f" styleClass="form-horizontal">
		<fieldset>
			<div class="control-group">
				<h:outputLabel for="email" value="Email" styleClass="control-label"/>
				<div class="controls">
					<h:inputText id="email" value="#{loginEmpresaMB.email}" required="true" styleClass="input-xlarge"/>
					<rich:message for="email" />
				</div>
			</div>
	    	<div class="control-group">
	  			<h:outputLabel for="senha" value="Senha" styleClass="control-label"/>
	  			<div class="controls">
	  				<h:inputSecret id="senha" value="#{loginEmpresaMB.senha}" required="true" styleClass="input-xlarge"/>
	  				<rich:message for="senha" />
	  				<br/><h:link value="Esqueci minha senha" outcome="esqueciminhasenha"/>
	  			</div>
			</div>
			
			<div class="form-actions">
				<h:commandButton id="entrar" action="#{loginEmpresaMB.logar}" value="Entrar" styleClass="btn-large btn-primary"/>
				<br/>
				<br/>
				Ainda não tem uma conta? <h:link value="Cadastre-se" outcome="cadastrarempresa"/> gratuitamente!
			</div>
		</fieldset>
		</h:form>
	</div>
	<script type="text/javascript">
		jQuery('#ms1').addClass('active');
	</script>
</ui:define>
</ui:composition>
</html>
